package statemachine.fsm2;

import java.util.LinkedList;

public class MonsterAI<S, E> extends UnitObjAI implements StateConfigurer<S, E> {

    private LinkedList<S> stateContextList = new LinkedList<S>();
    private S initial;    //初始状态

    @Override
    void buildStateConfig() {
    }

    @Override
    public StateConfigurer<S, E> initial(S initial) {
        this.initial = initial;
        return this;
    }

    @Override
    public StateConfigurer<S, E> state(S state) {
        stateContextList.add(state);
        return this;
    }

    @Override
    public StateConfigurer<S, E> withStates() throws Exception {
        return this;
    }
}
